package router

import (
	"github.com/gin-gonic/gin"
	"goods_bff/controller/goods"
)

func InitGoodsRouter(router *gin.Engine) {

	GoodsRouter := router.Group("/v1/goods")
	{
		GoodsRouter.GET("", goods.List)      //商品列表
		GoodsRouter.GET("/id", goods.Detail) //获取商品的详情
		GoodsRouter.POST("", goods.Add)      //添加商品
	}
}
